import request from "../utils/request";

export function getuserInfo():Promise<any> {
     return  request({
         url:'/user/getuserInfo',
         method:'get'
     })
}

export function getlist(data:any):Promise<any> {
    return  request({
        url:'/user/list',
        method:'get',
        params:data
    })
}

export function Login(data:any):Promise<any> {
    return  request({
        url:'/user/Login',
        method:'POST',
        data:data
    })
}

export function addUser(data:any):Promise<any> {
    return  request({
        url:'/user/add',
        method:'POST',
        data:data
    })
}


export function delUser(data:any):Promise<any> {
    return  request({
        url:'/user/del',
        method:'POST',
        params:data
    })
}

export function editUser(data:any):Promise<any> {
    return  request({
        url:'/user/edit',
        method:'POST',
        data:data
    })
}
